package com.xmb.quick.constant;


public enum ActUseConstant {

	use(1, "正在使用"),
	
	notUse(0 , "未使用");
	
	private int code;
	
	private String message;
	
	ActUseConstant(int code,String message){
		
		this.code = code;
		this.message = message;
	}
	
	public static String getMessage(int code) {
		for (ActUseConstant c : ActUseConstant.values()) {
			if (c.getCode() == code) {
				return c.message;
			}
		}
		return null;
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	
}
